const { app, BrowserWindow } = require("electron");

let BWin = null;
app.whenReady().then(() => {
  BWin = new BrowserWindow({
    width: 500,
    height: 300,
    webPreferences: {
      nodeIntegration: true,
      contextIsolation: false,
      enableRemoteModule: true,
    },
  });

  BWin.loadFile("./index.html");
  BWin.on("closed", () => {
    BWin = null;
  });

  BWin.removeMenu();
  // BWin.webContents.openDevTools();
});
